package org.mendoza.salud.hvt.client.shared.model.services;

import org.jboss.errai.bus.server.annotations.Remote;
import org.mendoza.salud.hvt.client.shared.model.AbstractEntity;

import java.util.List;

/**
 * Created by administrador on 06/10/14.
 */
@Remote
public interface PersistenceServiceRemote {
    public <T extends AbstractEntity> T persist(T entidad);
    public <T extends AbstractEntity> T merge(T entidad);
    public <T extends AbstractEntity> List<T> findAll(String nombreEntidad);
}
